{% extends "bootstrap/base.html" %}

{% block html_attribs %} lang="zh"{% endblock %}

{% block title %}
{% if Title %}
{{Title}}
{% else %}
Flask App
{% endif %}
{% endblock %}

{% block navbar %}
{% include "navbar.html" %}
{% endblock %}


{% block content %}
<div class="container">
    <div class="row">
        <div class="col-md-6">
            {% with messages = get_flashed_messages(with_categories=true) %}
            {% if messages %}
            {% for category, message in messages %}
            <p class="alert alert-{{ category }}">{{ message }}</p>
            {% endfor %}
            {% endif %}
            {% endwith %}
        </div>
    </div>
    {% block app_content %}

    {% endblock %}
</div>
{% endblock %}